import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router/index.js'
// import store from './store';
import {createPinia} from 'pinia'
import myplugin from './plugins'
import "./assets/reset.css"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app=createApp(App);//创建应用
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router);//this.$router this.$route
// app.use(store);//this.$store
app.use(createPinia());//把pinia作为插件安装到vue
// 插件是扩展 框架的功能 插件  组件化:把界面代码模块化
app.use(myplugin)
app.mount('#app')//应用挂载到网页 #app